package com.aos.erp.common.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @program: erp
 * @description:
 * @author: tanzhiyu
 * @create: 2018-11-08 10:21
 **/
@RefreshScope
@Configuration
public class GlobalConstant {
    //cookie名称
    public static String cookieName = "token";
    //cookie有效期 -1(浏览器关闭时)
    public static int cookieMaxAge = 60 * 60;

    public static int DAY_MILLIS = 24 * 60 * 60 * 1000;//24小时的毫秒数

    //访问文件路径
    public static String fileServiceUrl = "/gateway/ERP-FILE-SERVICE/file/show";

    //系统应用code---AOS系统
    @Value("${app-code-aos}")
    private String APP_CODE_AOS;

    //系统应用code---驾校系统
    @Value("${app-code-school}")
    private String APP_CODE_SCHOOL;


    public String getAPP_CODE_AOS() {
        return APP_CODE_AOS;
    }

    public void setAPP_CODE_AOS(String APP_CODE_AOS) {
        this.APP_CODE_AOS = APP_CODE_AOS;
    }

    public String getAPP_CODE_SCHOOL() {
        return APP_CODE_SCHOOL;
    }

    public void setAPP_CODE_SCHOOL(String APP_CODE_SCHOOL) {
        this.APP_CODE_SCHOOL = APP_CODE_SCHOOL;
    }
}
